package cn.bluedot.framework.dao;

import java.util.HashMap;

/**
 * XML数据库实体
 * @author Administrator
 *
 */
public class View {
	
	public static final String METHOD_INSERT = "insert";
	public static final String METHOD_DELETE = "delete";
	public static final String METHOD_UPDATE = "update";
	public static final String METHOD_SELECT = "select";
	
	
	private String name; //名称
	private String method; //方法
	
	private String table; //对应的表名
	private HashMap<String, String> mapper = new HashMap<>(); //列名
	private HashMap<String, String> where = new HashMap<>(); //where条件表达式
	private String condition; //多表连接条件
	
	private String other; //where条件其他字段：排序，分页，条件查

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method == null ? null : method.trim();
	}

	public String getTable() {
		return table;
	}

	public void setTable(String table) {
		this.table = table == null ? null : table.trim();
	}

	public HashMap<String, String> getMapper() {
		return mapper;
	}

	public void setMapper(HashMap<String, String> mapper) {
		this.mapper = mapper;
	}

	public HashMap<String, String> getWhere() {
		return where;
	}

	public void setWhere(HashMap<String, String> where) {
		this.where = where;
	}

	public String getCondition() {
		return condition;
	}

	public void setCondition(String condition) {
		this.condition = condition == null ? null : condition.trim();
	}

	public String getOther() {
		return other;
	}

	public void setOther(String other) {
		this.other = other == null ? null : other.trim();
	}	
	
}
